const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,

  userId: state => state.user.userInfo.userId,
  username: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  roles: state => state.user.userInfo.roles,
  points: state => state.user.userInfo.roles.points,
  company: state => state.user.userInfo.company, // 公司名称
  departmentName: state => state.user.userInfo.departmentName, // 部门名称
  avatars: state => state.user.userInfo.staffPhoto, // 用户头像
  names: state => state.user.userInfo.username // 用户名
}
export default getters
